<#assign base=request.contextPath />
<#assign oneLabel="ERP管理">

<#assign twoLabel="供应商管理">
<#assign twoUrl=base+"/suppiler/list">

<#if suppilerDO?? && (suppilerDO.id)!=0>
	<#assign leafLabel="编辑供应商">
	<#else>
	<#assign leafLabel="新增供应商">
</#if>
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" href="${base}/static/assets/css/chosen.css" />
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<#include "/commons/hiddenField.ftl">
<@spring.formHiddenInput "suppilerDO.id"/>

<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				名称<span class="red">*</span>
			</label>
			<div class="col-sm-4">
				<@spring.formInput "suppilerDO.name" "class='col-sm-12'"/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "suppilerDO.name" />
			</div>
		</div>
		<div class="space-4"></div>
			
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				负责人<span class="red">*</span>
			</label>
			<div class="col-sm-4">
				<@spring.formInput "suppilerDO.legalPerson" "class='col-sm-12'"/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "suppilerDO.legalPerson" />
			</div>
		</div>
		<div class="space-4"></div>
			
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				状态<span class="red">*</span>
			</label>
			<div class="col-sm-4">
				<@spring.formSingleSelect "suppilerDO.status" statusMap 'class="col-sm-6 chosen-select"'/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "suppilerDO.status" />
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">备注</label>
			<div class="col-sm-4">
				<@spring.formTextarea "suppilerDO.remark" 'class="col-xs-10 col-sm-12"'/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "suppilerDO.remark" />
			</div>
		</div>
		<div class="space-4"></div>
	</div><!-- /.col -->
</div><!-- /.row -->
</form>
<div class="hr hr32 hr-dotted"></div>
<div class="clearfix">
	<div class="col-md-offset-2 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="save_id" 
			url="<#if suppilerDO??&&suppilerDO.id!=0>${base}/suppiler/edit<#else>${base}/suppiler/add</#if>">
			<i class="icon-save bigger-110"></i>保存
		</button>
		<button class="btn btn-xs return_class" type="button" url="${base}/suppiler/list">
			<i class="icon-reply bigger-110"></i>返回
		</button>
	</div>
</div>

<#include "/commons/footer.ftl">
<script src="${base}/static/assets/js/chosen.jquery.min.js"></script>
<script>
jQuery(function($) {
	$(".chosen-select").chosen();
});
</script>
</body>
</html>
